package com.example.asthmate;

import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.Menu;
import android.view.MenuItem;

public class SetPreferencesActivity extends PreferenceActivity{
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.asthmate_preferences);
		
	}
	public boolean onCreateOptionsMenu(Menu menu){
		menu.add(Menu.NONE,0,0,"Show settings");
		return super.onCreateOptionsMenu(menu);
	}
	public boolean onOptionsItemSelectedd(MenuItem item){
		switch(item.getItemId()){
		case 0:
			startActivity(new Intent(this,ShowSettingsActivity.class));
			return true;
		}
		return false;
	}
}
